#include "BlockItem.h"
#include "../Declarations/Declaration.h"
#include "Statement.h"

BlockItem::~BlockItem(void)
{
	if(m_iType == declaration)
		delete m_pDecl;
	else
		delete m_pStmt;
}

void BlockItem::codeGen()
{
	COUT
	if(m_iType == declaration)
		m_pDecl->codeGen();
	else
		m_pStmt->codeGen();
}